
//
// Element.h
// Each element is created from a char*
//

#ifndef _ELEMENT_H_
#define _ELEMENT_H_

#include <iostream.h>
#include <string.h>

class Element {
private :
	char* element;

public :
	Element();
	Element(char* elem);
	Element(const Element& from);

	Element& operator=(const Element& from);

	int length() const;
	char* get() const;

	friend int operator==(const Element& one, const Element& two);
	friend int operator<(const Element& one, const Element& two);
	friend int operator<=(const Element& one, const Element& two);

	virtual ~Element();

	friend ostream& operator<<(ostream& os, const Element& elem);
};


#endif // _ELEMENT_H_

